import 'package:flutter/services.dart';
import 'package:lib_base/logger/logger.dart';

import '../logger_service.dart';

class LoggerServiceImpl extends LoggerService {
  final MethodChannel _channel = const MethodChannel('logger-service');

  @override
  void log(Level level, String message) {
    _channel.invokeMethod('log', {
      'level': level.index,
      'message': message,
    });
  }
}
